package com.gome.oa.custom;

import java.awt.event.ActionListener;

import javax.swing.JCheckBox;

import com.gome.oa.model.Day;

/**
 *
 * @author: tang li
 * @date: 2016年8月20日
 * @desc: 
 *
 */
public class CustomCheckbox extends JCheckBox {
	
	private static final long serialVersionUID = -6635498399559490169L;

	private Day day;
	
	private boolean visableInRow;
	
	public CustomCheckbox(String text, boolean selected, ActionListener listener, Day day, boolean visableInRow) {
		super();
		this.day = day;
		this.visableInRow = visableInRow;
		this.setText(text);
		this.setSelected(selected);
		this.addActionListener(listener);
	}

	public Day getDay() {
		return day;
	}

	public void setDay(Day day) {
		this.day = day;
	}

	public boolean isVisableInRow() {
		return visableInRow;
	}

	public void setVisableInRow(boolean visableInRow) {
		this.visableInRow = visableInRow;
	}
	
}
